//
//  Scores.m
//  MathKids
//
//  Created by Thuan on 5/27/14.
//  Copyright (c) 2014 Nguyen Huu Hien. All rights reserved.
//

#import "Scores.h"

@implementation Scores
@synthesize namePlayer, score;

-(id)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.namePlayer = [aDecoder decodeObjectForKey:@"namePlayer"];
        self.score = [aDecoder decodeIntForKey:@"score"];
    }
    return self;
}

-(void) encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:namePlayer forKey:@"namePlayer"];
    [aCoder encodeInt:score forKey:@"score"];
}
@end
